package com.kevin.learn.策略模式.工厂加策略;

public class RewardContext {

    private RewardStrategy strategy;

    public RewardContext(RewardStrategy strategy) {
        this.strategy = strategy;
    }
    
    public void doStrategy(long userId){
        strategy.reward(userId);
        
    }
}
